home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 April / Gamestar_83_2006-04_dvd.iso / Dema / demowot_english.exe / Script / Source / Behavior test.sma < prev    next >
Text File  |  2005-03-11  |  925b  |  40 lines

  1. #include "script.inc"
  2.  
  3.  
  4.  
  5. public main() // A palya belepesi pontja, helyette a PostGameStart fuggvenyt hasznald
  6.     CommonAKMain();
  7.  
  8.  
  9. public PostGameStart()
  10. {
  11.     CommonAKInit();
  12.      // AddAKEntityEvent( "TestEventHandler", ANY_ENTITY, TEST_EVENT );
  13.  
  14.     new akarmi[10] = "wpb1";
  15.     CmdMoveToEnt( GetEntity( "ax_pziif1" ), akarmi, Q_CYCLE );
  16.     CmdThrowEvent( GetEntity( "ax_pziif1" ), Q_CYCLE, 1 );
  17.  
  18.     akarmi = "wpb2";
  19.     CmdMoveToEnt( GetEntity( "ax_pziif1" ), akarmi, Q_CYCLE );
  20.     CmdThrowEvent( GetEntity( "ax_pziif1" ), Q_CYCLE, 2 );
  21.  
  22.     akarmi = "wpb3";
  23.     CmdMoveToEnt( GetEntity( "ax_pziif1" ), akarmi, Q_CYCLE );
  24.     CmdThrowEvent( GetEntity( "ax_pziif1" ), Q_CYCLE, 3 );
  25.     
  26.     AddAKEntityEvent( "Kiir", ANY_ENTITY, CMD_EVENT );
  27. }
  28.  
  29.  
  30. public TestEventHandler()
  31. {
  32.     CallUserEventEntity( UE_PATROLSTART, GetEntity( "tmp_patrol" ));
  33. }
  34.  
  35.  
  36. public Kiir()
  37. {
  38.     ShowShortMessageP1( "Event, id: %d.", GetMsgParamInt());
  39. }
  40.